public class WifeTask implements Runnable{
    private Wife wife;
    public WifeTask(Wife wife){
        this.wife = wife;
    }
    @Override
    public void run(){
        int i =0;
        while(i < 10){
            i++;
            this.wife.shopping(8);
            try{
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
